package org.lyq.erp.process.buyfulltemp.pojo;

import java.math.BigDecimal;
import java.util.List;
import org.lyq.erp.config.exception.errorbasics.ErrorMessageBasics;
import org.lyq.erp.process.buyfull.pojo.TblWxBuyfull;
import org.lyq.erp.utils.format.FormatUtils;

public class TblWxBuyfullTemplate extends ErrorMessageBasics {
	
	private Integer buyfullTempId;
	
	private String buyfullTempName;
	
	private String buyfullTempDesc;
	
	private Long buyfullTempCreatetime;
	
	private Long buyfullTempStarttime;
	
	private Long buyfullTempEndtime;
	
	private String buyfullTempCreatetimeView;
	
	private String buyfullTempStarttimeView;
	
	private String buyfullTempEndtimeView;
	
	private BigDecimal[] buyfullAmt;
	
	private BigDecimal[] buyfullSubtAmt;
	
	private Integer buyfullTempStatus;
	
	private Integer isExceed;
	
	private List<TblWxBuyfull> buyFullList;

	public BigDecimal[] getBuyfullAmt() {
		return this.buyfullAmt;
	}

	public void setBuyfullAmt(BigDecimal[] buyfullAmt) {
		this.buyfullAmt = buyfullAmt;
	}

	public BigDecimal[] getBuyfullSubtAmt() {
		return this.buyfullSubtAmt;
	}

	public void setBuyfullSubtAmt(BigDecimal[] buyfullSubtAmt) {
		this.buyfullSubtAmt = buyfullSubtAmt;
	}

	public String getBuyfullTempCreatetimeView() {
		return this.buyfullTempCreatetimeView;
	}

	public void setBuyfullTempCreatetimeView(String buyfullTempCreatetimeView) {
		this.buyfullTempCreatetimeView = buyfullTempCreatetimeView;
	}

	public String getBuyfullTempStarttimeView() {
		return this.buyfullTempStarttimeView;
	}

	public void setBuyfullTempStarttimeView(String buyfullTempStarttimeView) {
		this.buyfullTempStarttimeView = buyfullTempStarttimeView;
	}

	public String getBuyfullTempEndtimeView() {
		return this.buyfullTempEndtimeView;
	}

	public void setBuyfullTempEndtimeView(String buyfullTempEndtimeView) {
		this.buyfullTempEndtimeView = buyfullTempEndtimeView;
	}

	public Integer getIsExceed() {
		return this.isExceed;
	}

	public void setIsExceed(Integer isExceed) {
		this.isExceed = isExceed;
	}

	public List<TblWxBuyfull> getBuyFullList() {
		return this.buyFullList;
	}

	public void setBuyFullList(List<TblWxBuyfull> buyFullList) {
		this.buyFullList = buyFullList;
	}

	public Integer getBuyfullTempId() {
		return this.buyfullTempId;
	}

	public void setBuyfullTempId(Integer buyfullTempId) {
		this.buyfullTempId = buyfullTempId;
	}

	public String getBuyfullTempName() {
		return this.buyfullTempName;
	}

	public void setBuyfullTempName(String buyfullTempName) {
		this.buyfullTempName = (buyfullTempName == null) ? null : buyfullTempName.trim();
	}

	public String getBuyfullTempDesc() {
		return this.buyfullTempDesc;
	}

	public void setBuyfullTempDesc(String buyfullTempDesc) {
		this.buyfullTempDesc = (buyfullTempDesc == null) ? null : buyfullTempDesc.trim();
	}

	public Long getBuyfullTempCreatetime() {
		return this.buyfullTempCreatetime;
	}

	public void setBuyfullTempCreatetime(Long buyfullTempCreatetime) {
		if (buyfullTempCreatetime != null)
			this.buyfullTempCreatetimeView = FormatUtils.getFormatDate(buyfullTempCreatetime);
		this.buyfullTempCreatetime = buyfullTempCreatetime;
	}

	public Long getBuyfullTempStarttime() {
		return this.buyfullTempStarttime;
	}

	public void setBuyfullTempStarttime(Long buyfullTempStarttime) {
		if (buyfullTempStarttime != null) {
			this.buyfullTempStarttimeView = FormatUtils.getFormatDate(buyfullTempStarttime);
		}
		this.buyfullTempStarttime = buyfullTempStarttime;
	}

	public Long getBuyfullTempEndtime() {
		return this.buyfullTempEndtime;
	}

	public void setBuyfullTempEndtime(Long buyfullTempEndtime) {
		if (buyfullTempEndtime != null) {
			if (System.currentTimeMillis() >= buyfullTempEndtime.longValue()) {
				this.isExceed = Integer.valueOf(-1);
			} else {
				this.isExceed = Integer.valueOf(1);
			}
			this.buyfullTempEndtimeView = FormatUtils.getFormatDate(buyfullTempEndtime);
		}
		this.buyfullTempEndtime = buyfullTempEndtime;
	}

	public Integer getBuyfullTempStatus() {
		return this.buyfullTempStatus;
	}

	public void setBuyfullTempStatus(Integer buyfullTempStatus) {
		this.buyfullTempStatus = buyfullTempStatus;
	}
}
